package org.eden.web.pojo;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum States {

    REQUEST_SUCCESS(200, "请求成功"),
    LOGIN_SUCCESS(201, "login success"),
    REGISTER_SUCCESS(202, "register success"),


    LOGIN_FAILED(401, "login failed"),
    REGISTER_FAILED(402, "register failed"),
    ACCESS_DENIED(404, "权限不足，无法访问"),
    AUTH_DENIED(403, "未登录"),
    USER_NOT_FOUND(405, "用户不存在"),

    REQUEST_FAILED(501, "请求失败")
    ;

    private int code;
    private String msg;
}
